import { post } from "@/utils";
export interface Form {
  username: string;
  password: string;
}
interface LoginResponse {
  code: number;
  data: {
    token: string;
  };
  message: string;
}
const login = (data: Form): Promise<LoginResponse> => post("/login", data);
export default login;

